// Created by Administrator on 2015/12/4.

//pagination
div.text-center
    ul.pagination
        if(page.pageNum>1)
            li
                a(href='#{path}?pageNum=#{page.pageNum-1}') 上一页
        if(page.begin>2)
            li
                a(href='#{path}?pageNum=1') 1
            li
                a(href='#') ...
        - for(var i = page.begin; i<=page.end; i++){
            if(page.pageNum==i)
                li.active
                    a(href='#{path}?pageNum=#{i}') #{i}
            else
                li
                    a(href='#{path}?pageNum=#{i}') #{i}
        - }
        if(page.end<page.pageCount-1)
            li
                a(href='#') ...
            li
                a(href='#{path}?pageNum=#{page.pageCount}') #{page.pageCount}
        if(page.pageNum<page.end)
            li
                a(href='#{path}?pageNum=#{page.pageNum+1}') 下一页